
import request from '@/utils/request';
import { ResultOSSPolicyResponse } from './definitions/ResultOSSPolicyResponse';
import { Result } from './definitions/Result';


export class MediaCenterController {

    static getOSSPolicyUsingGETPath: string = "/v1/api/media/policies";

    async getOSSPolicyUsingGET( headers?: any) : Promise<ResultOSSPolicyResponse> {
      return request(`/v1/api/media/policies`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static uploadImageUsingPOSTPath: string = "/v1/api/media/uploadImage";
    /// 上传单个图片
    async uploadImageUsingPOST( headers?: any):  Promise<any> {
      return request(`/v1/api/media/uploadImage`, {
        method: "POST",
        data: null ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static uploadImagesUsingPOSTPath: string = "/v1/api/media/uploadImages";
    /// 上传多个图片
    async uploadImagesUsingPOST( headers?: any):  Promise<any> {
      return request(`/v1/api/media/uploadImages`, {
        method: "POST",
        data: null ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static uploadWxImageUsingPOSTPath: string = "/v1/api/media/uploadWxImage";
    /// 上传微信图片
    async uploadWxImageUsingPOST( headers?: any):  Promise<any> {
      return request(`/v1/api/media/uploadWxImage`, {
        method: "POST",
        data: null ,
        headers: headers,
      }) as Promise<any>;
    }
    
}